package com.joe.codemother.controller;

import com.joe.codemother.common.BaseResponse;
import com.joe.codemother.util.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/health")
public class PingController {

    @GetMapping("/ping")
    public BaseResponse<String> testPing(){
        return ResultUtils.success("ok!");
    }
}
